package com.ada.base.security.selma;

import com.ada.base.security.dto.UserOutDto;
import com.ada.base.security.entity.User;
import fr.xebia.extras.selma.IgnoreMissing;
import fr.xebia.extras.selma.Mapper;

import java.util.List;

@Mapper(withIgnoreMissing = IgnoreMissing.ALL, withIgnoreNullValue = true)
public interface UserSelmaMapper {
    UserOutDto asUserOutDto(User user);
    List<UserOutDto> asUserOutDtos(List<User> users);
}
